<template>
    <view class="container">
      <!-- 缴费类型选择 -->
      <view class="payment-tabbar">
        <view class="tab-item" 
              v-for="(type, index) in paymentTypes" 
              :key="index"
              :class="{ active: currentType === type.id }"
              @tap="selectPaymentType(type.id)">
          <text class="iconfont" :class="type.icon"></text>
          <text class="tab-name">{{ type.name }}</text>
          <view class="tab-line" v-if="currentType === type.id"></view>
        </view>
      </view>
      
      <!-- 园区房屋选择 -->
      <view class="house-selector">
        <view class="section-title">园区房屋</view>
        <view class="house-picker" @tap="showHouseModal">
          <text class="house-address">{{ selectedHouse.address || '请选择园区房屋' }}</text>
          <text class="iconfont icon-arrow-right"></text>
        </view>
      </view>
      
      <!-- 缴费信息 -->
      <view class="payment-info">
        <view class="section-title">缴费信息</view>
        
        <!-- 电费 -->
        <block v-if="currentType === 'electric'">
          <view class="info-card">
            <view class="info-header">
              <text class="card-title">电费账单</text>
              <text class="bill-status" :class="{ 'status-overdue': electricBill.isOverdue }">
                {{ electricBill.isOverdue ? '已逾期' : '待缴费' }}
              </text>
            </view>
            
            <view class="bill-amount">
              <text class="amount-value">{{ electricBill.amount }}</text>
              <text class="amount-unit">元</text>
            </view>
            
            <view class="bill-details">
              <view class="detail-item">
                <text class="detail-label">账单周期</text>
                <text class="detail-value">{{ electricBill.period }}</text>
              </view>
              <view class="detail-item">
                <text class="detail-label">用电量</text>
                <text class="detail-value">{{ electricBill.usage }} 度</text>
              </view>
              <view class="detail-item">
                <text class="detail-label">缴费期限</text>
                <text class="detail-value" :class="{ 'text-overdue': electricBill.isOverdue }">
                  {{ electricBill.dueDate }}
                </text>
              </view>
            </view>
            
            <view class="bill-footer">
              <text class="bill-tips">{{ electricBill.isOverdue ? '请尽快缴纳，避免停电' : '请按时缴纳电费' }}</text>
            </view>
          </view>
        </block>
        
        <!-- 水费 -->
        <block v-if="currentType === 'water'">
          <view class="info-card">
            <view class="info-header">
              <text class="card-title">水费账单</text>
              <text class="bill-status" :class="{ 'status-overdue': waterBill.isOverdue }">
                {{ waterBill.isOverdue ? '已逾期' : '待缴费' }}
              </text>
            </view>
            
            <view class="bill-amount">
              <text class="amount-value">{{ waterBill.amount }}</text>
              <text class="amount-unit">元</text>
            </view>
            
            <view class="bill-details">
              <view class="detail-item">
                <text class="detail-label">账单周期</text>
                <text class="detail-value">{{ waterBill.period }}</text>
              </view>
              <view class="detail-item">
                <text class="detail-label">用水量</text>
                <text class="detail-value">{{ waterBill.usage }} 吨</text>
              </view>
              <view class="detail-item">
                <text class="detail-label">缴费期限</text>
                <text class="detail-value" :class="{ 'text-overdue': waterBill.isOverdue }">
                  {{ waterBill.dueDate }}
                </text>
              </view>
            </view>
            
            <view class="bill-footer">
              <text class="bill-tips">{{ waterBill.isOverdue ? '请尽快缴纳，避免停水' : '请按时缴纳水费' }}</text>
            </view>
          </view>
        </block>
        
        <!-- 物业费 -->
        <block v-if="currentType === 'property'">
          <view class="info-card">
            <view class="info-header">
              <text class="card-title">物业费账单</text>
              <text class="bill-status" :class="{ 'status-overdue': propertyBill.isOverdue }">
                {{ propertyBill.isOverdue ? '已逾期' : '待缴费' }}
              </text>
            </view>
            
            <view class="bill-amount">
              <text class="amount-value">{{ propertyBill.amount }}</text>
              <text class="amount-unit">元</text>
            </view>
            
            <view class="bill-details">
              <view class="detail-item">
                <text class="detail-label">账单周期</text>
                <text class="detail-value">{{ propertyBill.period }}</text>
              </view>
              <view class="detail-item">
                <text class="detail-label">房屋面积</text>
                <text class="detail-value">{{ propertyBill.area }} 平方米</text>
              </view>
              <view class="detail-item">
                <text class="detail-label">缴费期限</text>
                <text class="detail-value" :class="{ 'text-overdue': propertyBill.isOverdue }">
                  {{ propertyBill.dueDate }}
                </text>
              </view>
            </view>
            
            <view class="bill-footer">
              <text class="bill-tips">{{ propertyBill.isOverdue ? '请尽快缴纳，避免产生滞纳金' : '请按时缴纳物业费' }}</text>
            </view>
          </view>
        </block>
        
        <!-- 燃气费 -->
        <block v-if="currentType === 'gas'">
          <view class="info-card">
            <view class="info-header">
              <text class="card-title">燃气费账单</text>
              <text class="bill-status" :class="{ 'status-overdue': gasBill.isOverdue }">
                {{ gasBill.isOverdue ? '已逾期' : '待缴费' }}
              </text>
            </view>
            
            <view class="bill-amount">
              <text class="amount-value">{{ gasBill.amount }}</text>
              <text class="amount-unit">元</text>
            </view>
            
            <view class="bill-details">
              <view class="detail-item">
                <text class="detail-label">账单周期</text>
                <text class="detail-value">{{ gasBill.period }}</text>
              </view>
              <view class="detail-item">
                <text class="detail-label">用气量</text>
                <text class="detail-value">{{ gasBill.usage }} 立方米</text>
              </view>
              <view class="detail-item">
                <text class="detail-label">缴费期限</text>
                <text class="detail-value" :class="{ 'text-overdue': gasBill.isOverdue }">
                  {{ gasBill.dueDate }}
                </text>
              </view>
            </view>
            
            <view class="bill-footer">
              <text class="bill-tips">{{ gasBill.isOverdue ? '请尽快缴纳，避免停气' : '请按时缴纳燃气费' }}</text>
            </view>
          </view>
        </block>
        
        <!-- 园区管理费 -->
        <block v-if="currentType === 'management'">
          <view class="info-card">
            <view class="info-header">
              <text class="card-title">园区管理费账单</text>
              <text class="bill-status" :class="{ 'status-overdue': managementBill.isOverdue }">
                {{ managementBill.isOverdue ? '已逾期' : '待缴费' }}
              </text>
            </view>
            
            <view class="bill-amount">
              <text class="amount-value">{{ managementBill.amount }}</text>
              <text class="amount-unit">元</text>
            </view>
            
            <view class="bill-details">
              <view class="detail-item">
                <text class="detail-label">账单周期</text>
                <text class="detail-value">{{ managementBill.period }}</text>
              </view>
              <view class="detail-item">
                <text class="detail-label">房屋类型</text>
                <text class="detail-value">{{ managementBill.type }}</text>
              </view>
              <view class="detail-item">
                <text class="detail-label">缴费期限</text>
                <text class="detail-value" :class="{ 'text-overdue': managementBill.isOverdue }">
                  {{ managementBill.dueDate }}
                </text>
              </view>
            </view>
            
            <view class="bill-footer">
              <text class="bill-tips">{{ managementBill.isOverdue ? '请尽快缴纳，避免影响园区服务' : '请按时缴纳园区管理费' }}</text>
            </view>
          </view>
        </block>
      </view>
      
      <!-- 支付方式 -->
      <view class="payment-method">
        <view class="section-title">支付方式</view>
        <view class="method-list">
          <view class="method-item" 
                v-for="(method, index) in paymentMethods" 
                :key="index"
                :class="{ active: selectedMethod === method.id }"
                @tap="selectPaymentMethod(method.id)">
            <view class="method-icon">
              <image :src="method.icon" mode="aspectFit"></image>
            </view>
            <text class="method-name">{{ method.name }}</text>
            <text class="iconfont icon-check" v-if="selectedMethod === method.id"></text>
          </view>
        </view>
      </view>
      
      <!-- 缴费记录入口 -->
      <view class="payment-records" @tap="navigateToRecords">
        <text class="record-text">缴费记录</text>
        <text class="iconfont icon-arrow-right"></text>
      </view>
      
      <!-- 底部支付按钮 -->
      <view class="payment-action">
        <view class="payment-summary">
          <text class="summary-label">应付金额</text>
          <view class="summary-amount">
            <text class="amount-value">{{ getCurrentBillAmount() }}</text>
            <text class="amount-unit">元</text>
          </view>
        </view>
        <view class="pay-button" @tap="handlePayment">立即支付</view>
      </view>
      
      <!-- 房屋选择弹窗 -->
      <view class="house-modal" v-if="showHouseModal">
        <view class="modal-mask" @tap="hideHouseModal"></view>
        <view class="modal-content">
          <view class="modal-header">
            <text class="modal-title">选择园区房屋</text>
            <text class="modal-close" @tap="hideHouseModal">×</text>
          </view>
          <view class="modal-body">
            <view class="house-list">
              <view class="house-item" 
                    v-for="(house, index) in houses" 
                    :key="index"
                    @tap="selectHouse(house)">
                <view class="house-info">
                  <text class="house-name">{{ house.name }}</text>
                  <text class="house-address">{{ house.address }}</text>
                </view>
                <text class="iconfont icon-check" v-if="selectedHouse.id === house.id"></text>
              </view>
            </view>
          </view>
          <view class="modal-footer">
            <view class="confirm-button" @tap="confirmHouseSelection">确认</view>
          </view>
        </view>
      </view>
      
      <!-- 支付确认弹窗 -->
      <view class="payment-confirm-modal" v-if="showPaymentConfirmModal">
        <view class="modal-mask" @tap="hidePaymentConfirmModal"></view>
        <view class="modal-content">
          <view class="modal-header">
            <text class="modal-title">确认支付</text>
            <text class="modal-close" @tap="hidePaymentConfirmModal">×</text>
          </view>
          <view class="modal-body">
            <view class="confirm-info">
              <view class="confirm-amount">
                <text class="amount-label">支付金额</text>
                <view>
                  <text class="amount-value">{{ getCurrentBillAmount() }}</text>
                  <text class="amount-unit">元</text>
                </view>
              </view>
              
              <view class="confirm-details">
                <view class="detail-item">
                  <text class="detail-label">缴费类型</text>
                  <text class="detail-value">{{ getCurrentTypeName() }}</text>
                </view>
                <view class="detail-item">
                  <text class="detail-label">缴费房屋</text>
                  <text class="detail-value">{{ selectedHouse.address }}</text>
                </view>
                <view class="detail-item">
                  <text class="detail-label">账单周期</text>
                  <text class="detail-value">{{ getCurrentBillPeriod() }}</text>
                </view>
                <view class="detail-item">
                  <text class="detail-label">支付方式</text>
                  <text class="detail-value">{{ getCurrentMethodName() }}</text>
                </view>
              </view>
              
              <view class="payment-method-preview">
                <image :src="getCurrentMethodIcon()" mode="aspectFit" class="method-icon"></image>
                <text class="method-name">{{ getCurrentMethodName() }}</text>
              </view>
            </view>
          </view>
          <view class="modal-footer">
            <view class="button-group">
              <view class="cancel-button" @tap="hidePaymentConfirmModal">取消</view>
              <view class="confirm-button" @tap="confirmPayment">确认支付</view>
            </view>
            <view class="payment-agreement">
              <text>点击确认支付，表示您同意</text>
              <text class="agreement-link">《支付协议》</text>
            </view>
          </view>
        </view>
      </view>
    </view>
  </template>
  
  <script>
  export default {
    data() {
      return {
        currentType: 'electric',
        selectedMethod: 'wechat',
        selectedHouse: {},
        showHouseModal: false,
        showPaymentConfirmModal: false,
        
        paymentTypes: [
          { id: 'electric', name: '电费', icon: 'icon-electric', bgColor: '#ff9500' },
          { id: 'water', name: '水费', icon: 'icon-water', bgColor: '#007aff' },
          { id: 'property', name: '物业费', icon: 'icon-property', bgColor: '#34c759' },
          { id: 'gas', name: '燃气费', icon: 'icon-gas', bgColor: '#ff3b30' },
          { id: 'management', name: '园区管理费', icon: 'icon-management', bgColor: '#6a11cb' }
        ],
        
        paymentMethods: [
          { id: 'wechat', name: '微信支付', icon: '/static/payment/wechat.png' },
          { id: 'alipay', name: '支付宝', icon: '/static/payment/alipay.png' },
          { id: 'unionpay', name: '银联云闪付', icon: '/static/payment/unionpay.png' },
          { id: 'bank', name: '银行卡支付', icon: '/static/payment/bank.png' }
        ],
        
        houses: [
          { id: 1, name: 'A栋1单元101', address: '科技园区A栋1单元101室' },
          { id: 2, name: 'B栋2单元203', address: '科技园区B栋2单元203室' },
          { id: 3, name: 'C栋3单元305', address: '科技园区C栋3单元305室' }
        ],
        
        electricBill: {
          amount: '128.56',
          period: '2023年10月',
          usage: '256',
          dueDate: '2023-11-15',
          isOverdue: false
        },
        
        waterBill: {
          amount: '75.20',
          period: '2023年10月',
          usage: '15.6',
          dueDate: '2023-11-15',
          isOverdue: false
        },
        
        propertyBill: {
          amount: '350.00',
          period: '2023年第四季度',
          area: '120',
          dueDate: '2023-12-31',
          isOverdue: false
        },
        
        gasBill: {
          amount: '98.75',
          period: '2023年10月',
          usage: '35.2',
          dueDate: '2023-11-20',
          isOverdue: false
        },
        
        managementBill: {
          amount: '580.00',
          period: '2023年第四季度',
          type: '科技企业办公室',
          dueDate: '2023-12-15',
          isOverdue: false
        }
      }
    },
    created() {
      // 默认选择第一个房屋
      if (this.houses.length > 0) {
        this.selectedHouse = this.houses[0];
      }
    },
    methods: {
      selectPaymentType(typeId) {
        this.currentType = typeId;
      },
      
      selectPaymentMethod(methodId) {
        this.selectedMethod = methodId;
      },
      
      showHouseModal() {
        this.showHouseModal = true;
      },
      
      hideHouseModal() {
        this.showHouseModal = false;
      },
      
      selectHouse(house) {
        this.selectedHouse = house;
      },
      
      confirmHouseSelection() {
        this.hideHouseModal();
      },
      
      handlePayment() {
        if (!this.selectedHouse.id) {
          uni.showToast({
            title: '请选择园区房屋',
            icon: 'none'
          });
          return;
        }
        
        this.showPaymentConfirmModal = true;
      },
      
      hidePaymentConfirmModal() {
        this.showPaymentConfirmModal = false;
      },
      
      confirmPayment() {
        // 模拟支付过程
        uni.showLoading({
          title: '支付中...'
        });
        
        setTimeout(() => {
          uni.hideLoading();
          uni.showToast({
            title: '支付成功',
            icon: 'success',
            duration: 2000
          });
          this.hidePaymentConfirmModal();
          
          // 支付成功后跳转到支付成功页面
          setTimeout(() => {
            uni.navigateTo({
              url: '/pages/property/payment-success'
            });
          }, 1500);
        }, 2000);
      },
      
      getCurrentBillAmount() {
        switch (this.currentType) {
          case 'electric':
            return this.electricBill.amount;
          case 'water':
            return this.waterBill.amount;
          case 'property':
            return this.propertyBill.amount;
          case 'gas':
            return this.gasBill.amount;
          case 'management':
            return this.managementBill.amount;
          default:
            return '0.00';
        }
      },
      
      getCurrentTypeName() {
        const type = this.paymentTypes.find(item => item.id === this.currentType);
        return type ? type.name : '';
      },
      
      getCurrentMethodName() {
        const method = this.paymentMethods.find(item => item.id === this.selectedMethod);
        return method ? method.name : '';
      },
      
      getCurrentBillPeriod() {
        switch (this.currentType) {
          case 'electric':
            return this.electricBill.period;
          case 'water':
            return this.waterBill.period;
          case 'property':
            return this.propertyBill.period;
          case 'gas':
            return this.gasBill.period;
          case 'management':
            return this.managementBill.period;
          default:
            return '';
        }
      },
      
      getCurrentMethodIcon() {
        const method = this.paymentMethods.find(item => item.id === this.selectedMethod);
        return method ? method.icon : '';
      },
      
      navigateToRecords() {
        uni.navigateTo({
          url: '/pages/property/payment-records'
        });
      }
    }
  }
  </script>
  
  <style lang="scss">
  .container {
    min-height: 100vh;
    background-color: #f8f9fc;
    padding-bottom: 120rpx;
  }
  
  .payment-tabbar {
    display: flex;
    background-color: #fff;
    padding: 0 20rpx;
    border-bottom: 1rpx solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 10;
    
    .tab-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 20rpx 0;
      position: relative;
      
      .iconfont {
        font-size: 40rpx;
        color: #999;
        margin-bottom: 8rpx;
      }
      
      .tab-name {
        font-size: 24rpx;
        color: #666;
      }
      
      .tab-line {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40rpx;
        height: 6rpx;
        background: linear-gradient(to right, #6a11cb, #2575fc);
        border-radius: 6rpx;
      }
      
      &.active {
        .iconfont {
          color: #6a11cb;
        }
        
        .tab-name {
          color: #6a11cb;
          font-weight: 500;
        }
      }
    }
  }
  
  .section-title {
    font-size: 30rpx;
    font-weight: bold;
    color: #333;
    margin: 30rpx 0 20rpx;
    padding-left: 20rpx;
    position: relative;
    
    &::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 6rpx;
      height: 24rpx;
      background: #6a11cb;
      border-radius: 3rpx;
    }
  }
  
  .house-selector {
    padding: 0 30rpx;
    
    .house-picker {
      background-color: #fff;
      border-radius: 12rpx;
      padding: 24rpx;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
      
      .house-address {
        font-size: 28rpx;
        color: #333;
      }
      
      .iconfont {
        font-size: 24rpx;
        color: #999;
      }
    }
  }
  
  .payment-info {
    padding: 0 30rpx;
    
    .info-card {
      background-color: #fff;
      border-radius: 12rpx;
      padding: 30rpx;
      box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
      
      .info-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20rpx;
        
        .card-title {
          font-size: 32rpx;
          font-weight: bold;
          color: #333;
        }
        
        .bill-status {
          font-size: 24rpx;
          color: #ff9500;
          background-color: rgba(255, 149, 0, 0.1);
          padding: 4rpx 16rpx;
          border-radius: 20rpx;
          
          &.status-overdue {
            color: #ff3b30;
            background-color: rgba(255, 59, 48, 0.1);
          }
        }
      }
      
      .bill-amount {
        text-align: center;
        margin: 40rpx 0;
        
        .amount-value {
          font-size: 60rpx;
          font-weight: bold;
          color: #ff3b30;
        }
        
        .amount-unit {
          font-size: 28rpx;
          color: #ff3b30;
          margin-left: 8rpx;
        }
      }
      
      .bill-details {
        background-color: #f8f9fc;
        border-radius: 12rpx;
        padding: 20rpx;
        
        .detail-item {
          display: flex;
          justify-content: space-between;
          margin-bottom: 16rpx;
          
          &:last-child {
            margin-bottom: 0;
          }
          
          .detail-label {
            font-size: 26rpx;
            color: #666;
          }
          
          .detail-value {
            font-size: 26rpx;
            color: #333;
            font-weight: 500;
            
            &.text-overdue {
              color: #ff3b30;
            }
          }
        }
      }
      
      .bill-footer {
        margin-top: 20rpx;
        
        .bill-tips {
          font-size: 24rpx;
          color: #999;
        }
      }
    }
  }
  
  .payment-method {
    padding: 0 30rpx;
    
    .method-list {
      background-color: #fff;
      border-radius: 12rpx;
      padding: 0 24rpx;
      box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
      
      .method-item {
        display: flex;
        align-items: center;
        padding: 24rpx 0;
        border-bottom: 1rpx solid #f0f0f0;
        
        &:last-child {
          border-bottom: none;
        }
        
        .method-icon {
          width: 60rpx;
          height: 60rpx;
          margin-right: 20rpx;
          
          image {
            width: 100%;
            height: 100%;
          }
        }
        
        .method-name {
          flex: 1;
          font-size: 28rpx;
          color: #333;
        }
        
        .icon-check {
          font-size: 36rpx;
          color: #6a11cb;
        }
      }
    }
  }
  
  .payment-records {
    margin: 30rpx;
    background-color: #fff;
    border-radius: 12rpx;
    padding: 24rpx;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
    
    .record-text {
      font-size: 28rpx;
      color: #333;
    }
    
    .iconfont {
      font-size: 24rpx;
      color: #999;
    }
  }
  
  .payment-action {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 20rpx 30rpx;
    box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
    
    .payment-summary {
      flex: 1;
      
      .summary-label {
        font-size: 24rpx;
        color: #666;
      }
      
      .summary-amount {
        .amount-value {
          font-size: 40rpx;
          font-weight: 600;
          color: #ff3b30;
        }
        
        .amount-unit {
          font-size: 24rpx;
          color: #ff3b30;
        }
      }
    }
    
    .pay-button {
      background: linear-gradient(to right, #6a11cb, #2575fc);
      color: #fff;
      font-size: 32rpx;
      padding: 20rpx 60rpx;
      border-radius: 50rpx;
      box-shadow: 0 6rpx 20rpx rgba(106, 17, 203, 0.3);
    }
  }
  
  .house-modal, .payment-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    
    .modal-mask {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0, 0, 0, 0.5);
    }
    
    .modal-content {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background-color: #fff;
      border-radius: 24rpx 24rpx 0 0;
      overflow: hidden;
      
      .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 30rpx;
        border-bottom: 1rpx solid #f0f0f0;
        
        .modal-title {
          font-size: 32rpx;
          font-weight: bold;
          color: #333;
        }
        
        .modal-close {
          font-size: 40rpx;
          color: #999;
          padding: 10rpx;
        }
      }
      
      .modal-body {
        padding: 20rpx 30rpx;
        max-height: 60vh;
        overflow-y: auto;
        
        .confirm-info {
          .confirm-amount {
            text-align: center;
            padding: 30rpx 0;
            
            .amount-label {
              font-size: 28rpx;
              color: #666;
              margin-bottom: 16rpx;
              display: block;
            }
            
            .amount-value {
              font-size: 60rpx;
              font-weight: 600;
              color: #ff3b30;
            }
            
            .amount-unit {
              font-size: 28rpx;
              color: #ff3b30;
            }
          }
          
          .confirm-details {
            background-color: #f8f9fc;
            border-radius: 12rpx;
            padding: 20rpx;
            margin-bottom: 30rpx;
            
            .detail-item {
              display: flex;
              justify-content: space-between;
              margin-bottom: 16rpx;
              
              &:last-child {
                margin-bottom: 0;
              }
              
              .detail-label {
                font-size: 26rpx;
                color: #666;
              }
              
              .detail-value {
                font-size: 26rpx;
                color: #333;
                font-weight: 500;
              }
            }
          }
          
          .payment-method-preview {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20rpx;
            background-color: #f8f9fc;
            border-radius: 12rpx;
            margin-bottom: 20rpx;
            
            .method-icon {
              width: 60rpx;
              height: 60rpx;
              margin-right: 20rpx;
            }
            
            .method-name {
              font-size: 28rpx;
              color: #333;
              font-weight: 500;
            }
          }
        }
      }
      
      .modal-footer {
        padding: 20rpx 30rpx 50rpx;
        
        .button-group {
          display: flex;
          justify-content: space-between;
          
          .cancel-button {
            width: 45%;
            height: 80rpx;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #f5f7fa;
            color: #333;
            font-size: 30rpx;
            border-radius: 40rpx;
          }
          
          .confirm-button {
            width: 45%;
            height: 80rpx;
            display: flex;
            justify-content: center;
            align-items: center;
            background: linear-gradient(to right, #6a11cb, #2575fc);
            color: #fff;
            font-size: 30rpx;
            border-radius: 40rpx;
            box-shadow: 0 6rpx 20rpx rgba(106, 17, 203, 0.2);
          }
        }
        
        .payment-agreement {
          text-align: center;
          font-size: 24rpx;
          color: #999;
          margin-top: 20rpx;
          
          .agreement-link {
            color: #6a11cb;
            text-decoration: underline;
          }
        }
      }
    }
  }


.payment-success {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  .success-icon {
    width: 120rpx;
    height: 120rpx;
    background-color: rgba(106, 17, 203, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30rpx;
    
    .iconfont {
      font-size: 60rpx;
      color: #6a11cb;
    }
  }
  
  .success-title {
    font-size: 36rpx;
    font-weight: bold;
    color: #333;
    margin-bottom: 16rpx;
  }
  
  .success-desc {
    font-size: 28rpx;
    color: #666;
    margin-bottom: 60rpx;
  }
  
  .success-amount {
    font-size: 60rpx;
    font-weight: 600;
    color: #333;
    margin-bottom: 60rpx;
    
    .amount-unit {
      font-size: 28rpx;
    }
  }
  
  .action-buttons {
    display: flex;
    
    .action-btn {
      padding: 20rpx 40rpx;
      border-radius: 50rpx;
      font-size: 28rpx;
      margin: 0 20rpx;
      
      &.view-bill {
        background-color: #f5f7fa;
        color: #333;
      }
      
      &.back-home {
        background: linear-gradient(to right, #6a11cb, #2575fc);
        color: #fff;
      }
    }
  }
}
</style>